<template>
  <div class="container">
    <div class="tab-tit clearfix">
      <a href="javascript:;" class="on">
        <i></i>

        <p class="text">热卖排行</p>
      </a>
      <a href="javascript:;">
        <i></i>

        <p class="text">特价排行</p>
      </a>
      <a href="javascript:;">
        <i></i>

        <p class="text">新品排行</p>
      </a>
    </div>

    <div class="content">
      <div class="img-item">
        <p class="tab-pic">
          <a href="#">
            <img src="./images/1.jpg" />
          </a>
        </p>
        <div class="tab-info">
          <div class="info-title">
            <a href="#"
              >【官网价直降1100】Apple iPhone 8 Plus 256GB 银色
              移动联通电信4G手机</a
            >
          </div>
          <p class="info-price">定金：¥100.00</p>
        </div>
      </div>
      <div class="img-item">
        <p class="tab-pic">
          <a href="#">
            <img src="./images/1.jpg" />
          </a>
        </p>
        <div class="tab-info">
          <div class="info-title">
            <a href="#"
              >【官网价直降1100】Apple iPhone 8 Plus 256GB 银色
              移动联通电信4G手机</a
            >
          </div>
          <p class="info-price">定金：¥100.00</p>
        </div>
      </div>
      <div class="img-item">
        <p class="tab-pic">
          <a href="#">
            <img src="./images/1.jpg" />
          </a>
        </p>
        <div class="tab-info">
          <div class="info-title">
            <a href="#"
              >【官网价直降1100】Apple iPhone 8 Plus 256GB 银色
              移动联通电信4G手机</a
            >
          </div>
          <p class="info-price">定金：¥100.00</p>
        </div>
      </div>
      <div class="img-item">
        <p class="tab-pic">
          <a href="#">
            <img src="./images/1.jpg" />
          </a>
        </p>
        <div class="tab-info">
          <div class="info-title">
            <a href="#"
              >【官网价直降1100】Apple iPhone 8 Plus 256GB 银色
              移动联通电信4G手机</a
            >
          </div>
          <p class="info-price">定金：¥100.00</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "Rank",
};
</script>

<style scoped lang="scss">
.tab-tit {
  margin: 0 auto;

  width: 312px;
  text-align: center;
  a {
    padding: 0 18px;
    float: left;

    font-size: 16px;
    color: #999;
  }
  p {
    line-height: 28px;
    margin: 5px 0;
  }

  i {
    width: 35px;
    height: 35px;
    display: block;
    background: url(./images/bg0.png);
    margin-left: 10px;
  }
  .on {
    color: #e60012;
    i {
      background-position: -35px 0;
    }
  }
}
.content {
  display: flex;
  .img-item {
    float: left;
    width: 25%;
    margin: 0 12px 10px;
    border: 2px solid red;
    text-align: center;
    .tab-pic {
      margin: 5px auto 18px;
      a {
        display: block;

        img {
          width: 200px;
          height: 200px;
        }
      }
    }

    .tab-info {
      background: #fafafa;

      .info-title {
        height: 50px;
        line-height: 28px;

        margin: 0 auto;
        padding-left: 10px;

        a {
          color: #333;
          text-decoration: none;
        }
      }

      .info-price {
        font-size: 20px;
        color: #e1251b;
        height: 35px;
        padding-left: 10px;
        display: block;
        line-height: 24px;
        margin: 10px auto 0;
      }
    }
  }
}
</style>
